package com.atguigu.eduservice.service;

import com.atguigu.eduservice.entity.EduCourse;
import com.atguigu.eduservice.entity.front.CourseFrontVo;
import com.atguigu.eduservice.entity.front.CourseWebVo;
import com.atguigu.eduservice.entity.vo.CourseInfoVo;
import com.atguigu.eduservice.entity.vo.CoursePublishVo;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 课程 服务类
 * </p>
 *
 * @author thomasyang
 * @since 2023-12-09
 */
public interface EduCourseService extends IService<EduCourse> {

    String saveCourse(CourseInfoVo courseInfoVo);

    CourseInfoVo getCourseInfo(String id);

    Boolean updateCourseInfo(CourseInfoVo courseInfoVo);

    CoursePublishVo getCoursePublishInfoVoById(String id);

    Boolean publishById(String id);

    Boolean removeCourse(String id);

    Page<EduCourse> getCourseFrontList(Page<EduCourse> pageParm, CourseFrontVo courseFrontVo );

    public CourseWebVo getBaseCourseInfo(String id);
}
